package io.renren.modules.business.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.business.entity.EDepartmentEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Map;

/**
 * 部门表
 */
@Mapper
public interface EDepartmentDao extends BaseMapper<EDepartmentEntity> {

    /**
     * 根据部门编号/部门名称查询部门信息
     * @param departmentId 部门编号
     * @param departmentName 部门名称
     * @return
     */
    IPage<Map<String, Object>> queryDepartment(Page page, @Param("departmentId") Long departmentId, @Param("departmentName") String departmentName);
	
}
